package com.example.shop_2207.pay

import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.text.SpannableStringBuilder
import android.text.style.UnderlineSpan
import com.alibaba.android.arouter.facade.annotation.Route
import com.example.shop_2207.R
import com.example.shop_2207.databinding.ActivityPaySuccessBinding
import com.example.shop_2207.mvvm.BaseViewActivity

@Route(path = "/app/PaySuccessActivity")
class PaySuccessActivity : BaseViewActivity<ActivityPaySuccessBinding>() {
    override fun getLayout(): Int = R.layout.activity_pay_success

    override fun initView() {
        //查询订单
        val spannableStringBuilder = SpannableStringBuilder(binding.tvQueryorder.text)
        spannableStringBuilder.setSpan(UnderlineSpan(),0,4,SpannableStringBuilder.SPAN_INCLUSIVE_INCLUSIVE)
        binding.tvQueryorder.text = spannableStringBuilder
        //再次购买
        val spannableStringBuilder1 = SpannableStringBuilder(binding.tvPayagain.text)
        spannableStringBuilder1.setSpan(UnderlineSpan(),0,4,SpannableStringBuilder.SPAN_INCLUSIVE_INCLUSIVE)
        binding.tvPayagain.text = spannableStringBuilder1

    }

    override fun initData() {

    }

}